package com.salt.modules.sys.entity;

import com.salt.common.persistence.DataEntity;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @Description 应用菜单(子级菜单)
 * @Author salt
 * @Date 2022/1/18
 * @Version 1.0.1
 */
@Getter
@Setter
@NoArgsConstructor
public class AppChildMenu extends DataEntity<AppChildMenu> {

    private String userId;
    private String menuId;  // 子级菜单ID（Menu的属性type = 1）
    private String parentMenuId; // 该子级菜单所属的一级目录ID
    private String tenant;

    public AppChildMenu(String userId) {
        super();
        this.userId = userId;
    }

    public AppChildMenu(String userId, String menuId) {
        super();
        this.userId = userId;
        this.menuId = menuId;
    }

    public AppChildMenu(String userId, String menuId, String parentMenuId) {
        super();
        this.userId = userId;
        this.menuId = menuId;
        this.parentMenuId = parentMenuId;
    }

    public AppChildMenu(String userId, String menuId, String parentMenuId, String tenant) {
        super();
        this.userId = userId;
        this.menuId = menuId;
        this.parentMenuId = parentMenuId;
        this.tenant = tenant;
    }
}
